import React from "react";
import { css,keyframes } from "@emotion/core";
const ani=keyframes`
    0%{
        width:100px;
        background:red;
    }
    100%{
        width:200px;
        background:yellow;
    }

`
const style=css`
    height:50px;
    color:red;
    animation:${ani} 5s ease infinite;
`
export default function CSSAnimation() {
    return (
        <div css={style}>关键帧动画</div>
    )
}